﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ChoosePanel : BasePanel
{
    public Button choose1;
    public Button choose2;

    public override void OnActive()
    {
        
    }

    // Use this for initialization
    void Awake()
    {
        choose1.onClick.AddListener(OnChoose1);
        choose2.onClick.AddListener(OnChoose2);
    }

    void OnChoose1()
    {
        AudioManager.Instance.PlayClick();
        GameManager.Instance.StartGame(1);
        UIManager.Instance.Push("AnswerPanel");
    }

    void OnChoose2()
    {
        AudioManager.Instance.PlayClick();
        GameManager.Instance.StartGame(2);
        UIManager.Instance.Push("AnswerPanel");
    }
}
